package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.CityPartnerApplicationCreateCmd;
import com.baoyouqun.domain.Query.CityPartnerApplicationQuery;
import com.baoyouqun.domain.UpdateCmd.CityPartnerApplicationUpdateCmd;
import com.baoyouqun.domain.VO.CityPartnerApplicationVO;
import com.baoyouqun.entity.CityPartnerApplication;
import jakarta.servlet.http.HttpServletResponse;

public interface CityPartnerApplicationService extends IService

        <CityPartnerApplication> {

    /**
     * 新增并返回实体
     */
    SingleResponse<CityPartnerApplicationVO> create(CityPartnerApplicationCreateCmd cmd);

    Response update(CityPartnerApplicationUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    CityPartnerApplicationVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<CityPartnerApplicationVO> pageVo(CityPartnerApplicationQuery query);

    void exportApplicationExcel(CityPartnerApplicationQuery query, HttpServletResponse response);

    Response updateStatus(String id, Byte status);
}